package com.neusoft.neuiotms.dcam.fixed.repository.spareConsume;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.fixed.model.spareconsume.SpareConsumeStock;

public interface SpareConsumeStockRepository
        extends JpaRepository<SpareConsumeStock, Long>, CustomizedSpareConsumeStockRepository {

    List<SpareConsumeStock> findByWorkNumAndTaskId(String workNum, String taskId);

    List<SpareConsumeStock> findByStock_StatusAndWorkNumIn(String status, List<String> workOrderNums);

    List<SpareConsumeStock> findByWorkNum(String workOrderNum);
}
